package com.handsoninfo;

import java.io.File;

public class FewShotTest {


    public static void main(String[] args) {
        Recognition recognition = new Recognition();
        File dir = new File("data"); // 目录名
        File[] files = dir.listFiles(); // 获取该目录下的所有文件和子目录
        assert files != null;
        MultiImageUi ui = new MultiImageUi();
        for (File file : files) {
            if (file.isFile()) { // 如果是文件，并且文件名以 .jpg 结尾
                try {
                    Recognition.Instance instance = recognition.recognize(file);
                    ui.put(instance);
                } catch (Exception e) {
                    e.printStackTrace(System.err);
                }
            }
        }
    }
}
